package global

type ResourceType int

const (
	UNKNOWNT ResourceType = iota
	MUSIC
	VIDEO
	PIC
)

var ResourceTypeStr = map[ResourceType]string{MUSIC: "audio", VIDEO: "video", PIC: "pic"}

const (
	UploadBackgroundPathPrefix      = "/res/upload/bg/"
	UploadMaterialPathPrefix        = "/res/upload/material/"
	UploadVideoPathPrefix           = "/res/upload/video/"
	UploadMusicPathPrefix           = "/res/upload/music/"
	UploadAudioPathPrefix           = "/res/upload/audio/"
	UploadTtsPathPrefix             = "/res/upload/tts/"
	UploadAudioTask                 = "/res/upload/audio_task/"
	UploadTemplatePathPrefix        = "/res/upload/template/"
	UploadNewYearActivityPathPrefix = "/res/upload/new_year_activity/"
	UploadUserMaterialPathPrefix    = "/res/upload/user_material/%d"
	UploadPdfPptPathPrefix          = "/res/upload/pdf_ppt"
	UploadPersonPathPrefix          = "/res/person/"
	UploadProjectTaskPathPrefix     = "/res/upload/project_task/" // 此后跟任务ID
)

type ProcessStatus int

// 1 未处理  2 声音驱动处理中 3 声音驱动处理完成,4 合成背景处理中 5 处理完成 6处理异常
const (
	NOHANDLE ProcessStatus = iota + 1
	AudioDriveHANDLING
	AudioDriveHANDLED
	ComposeHANDLING
	ComposeHANDLED
	EXCEPT
)

var JsonHeader = map[string]string{"Content-Type": "application/json"}
